home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
allfiles
/
move
/
move.dir
/
00048_Script_48
< prev
next >
Wrap
Text File
|
1999-03-05
|
5KB
|
174 lines
on exitFrame
global currentproject
--scrolling text thing
if the loch of sprite 4 < -610 then
set the loch of sprite 4 = 1030
set the locV of sprite 4 = random(30)+16
else if the loch of sprite 4 > 1030 then
set the loch of sprite 4 = -610
end if
if the mouseH > 300 then
set the locH of sprite 4 = the loch of sprite 4 - (the mouseh)/100
else
set the locH of sprite 4 = the loch of sprite 4 + (400 - the mouseh)/100
end if
--scroll horiz
if the locH of sprite 3 < -1024 then
set the loch of sprite 3 = 1024
set the locV of sprite 3 = random(24)+12
else
set the loch of sprite 3 = the loch of sprite 3 - 2
end if
if the locH of sprite 5 >= 1024 then
set the loch of sprite 5 = -700
else
set the loch of sprite 5 = the loch of sprite 5 + 1
end if
--pixels+paper
if the locH of sprite 6 < -650 then
set the loch of sprite 6 = 1024
else
set the loch of sprite 6 = the loch of sprite 6 - 4
end if
--pixels+paper
if the locH of sprite 7 > 1024 then
set the loch of sprite 7 = -850
else
set the loch of sprite 7 = the loch of sprite 7 + 3
end if
if the locH of sprite 8 >= 1024 then
set the loch of sprite 8 = -930
set the locV of sprite 8 = random(45)+12
else if the locH of sprite 8 < -930 then
set the loch of sprite 8 = 1024
end if
if the mouseH > 400 then
set the loch of sprite 8 = the loch of sprite 8 + the mouseh/100
else
set the loch of sprite 8 = the loch of sprite 8 - (600-the mouseh)/100
end if
--MESSAGE
if the locH of sprite 10 < -930 then
global currentmsg
if currentmsg < the number of lines in field "msgsource" then
set currentmsg = currentmsg + 1
else
set currentmsg = 1
end if
set the member of sprite 10 = member string(line currentmsg of field "msgsource")
--set the text of field "msg" = line currentmsg of field "msgsource"
set the locH of sprite 10 = 800
set the locV of sprite 10 = random(20) + 531
end if
set the locH of sprite 10 = the locH of sprite 10 - 3
--hilite the current project button
set the locH of sprite 21 = the locH of sprite currentproject
--check mouseposition
if the mousev < 531 then
set the locH of sprite 21 = -50
go "loop1"
else
go the frame
end if
-- scroll off page
if the mouseH > 550 then
set the loch of sprite 18 = the locH of sprite 18 - the mouseH/100
else if the mouseH < 20 then
set the loch of sprite 18 = the locH of sprite 18 + (20-the mouseH)/5
else
set the loch of sprite 18 = the mouseh * -1
end if
--change button positions
repeat with j = 59 to 79
--the formula:
--set the locH of sprite j = the locH of sprite 18 + the initial locH of sprite 59 + (j-59)* the distance between sprites' locH
set the locH of sprite j = the locH of sprite 18 + 63 + (j-59)*48
end repeat
--move the mousedown sprite off stage
--set the locH of sprite 21 = -50
-- show the rollover sprite
if rollover(59) then
showrollover 59
else if rollover(60) then
showrollover 60
else if rollover(61) then
showrollover 61
else if rollover(62) then
showrollover 62
else if rollover(62) then
showrollover 62
else if rollover(63) then
showrollover 63
else if rollover(64) then
showrollover 64
else if rollover(65) then
showrollover 65
else if rollover(66) then
showrollover 66
else if rollover(67) then
showrollover 67
else if rollover(68) then
showrollover 68
else if rollover(69) then
showrollover 69
else if rollover(70) then
showrollover 70
else if rollover(71) then
showrollover 71
else if rollover(72) then
showrollover 72
else if rollover(73) then
showrollover 73
else if rollover(74) then
showrollover 74
else if rollover(75) then
showrollover 75
else if rollover(76) then
showrollover 76
else if rollover(77) then
showrollover 77
else if rollover(78) then
showrollover 78
else if rollover(79) then
showrollover 79
else
set the locH of sprite 20 = -50
set the locH of sprite 21 = -50
--set the text of the client/project field to blank
set the member of sprite 105 = line 58 of field "project"
end if
end